package com.migo.service.impl;

import com.migo.dao.SparePartDao;
import com.migo.entity.SparePartEntity;
import com.migo.service.SparePartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("sparePartService")
public class SparePartServiceImpl implements SparePartService {
	@Autowired
	private SparePartDao sparePartDao;
	
	@Override
	public SparePartEntity queryObject(Integer id){
		return sparePartDao.queryObject(id);
	}
	
	@Override
	public List<SparePartEntity> queryList(Map<String, Object> map){
		return sparePartDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sparePartDao.queryTotal(map);
	}
	
	@Override
	public void save(SparePartEntity sparePart){
		sparePartDao.save(sparePart);
	}
	
	@Override
	public void update(SparePartEntity sparePart){
		sparePartDao.update(sparePart);
	}
	
	@Override
	public void delete(Integer id){
		sparePartDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		sparePartDao.deleteBatch(ids);
	}
	
}
